package com.project.bean;

import java.time.LocalDate;

/**
 * @author liuyulai
 * Created with IntelliJ IDEA.
 * Date: 21.7.10
 * Time: 16:19
 * Description: 学生实体bean
 */
public class StudentBean {
    /**
     * 学生id
     */
    private int studentId;
    /**
     * 学生姓名
     */
    private String stuName;

    /**
     * 学生生日
     */
    private LocalDate birthday;

    /**
     * 学生电话号码
     */
    private String tel;

    /**
     * 学生所属学校
     */
    private String schoolName;

    /**
     * 学生所属班级
     */
    private ClassesBean classesBean;

    public StudentBean() {

    }

    public StudentBean(String stuName, LocalDate birthday, String tel, String schoolName, int classesBean) {
        this.stuName = stuName;
        this.birthday = birthday;
        this.tel = tel;
        this.schoolName = schoolName;
        this.classesBean = new ClassesBean();
        this.classesBean.setClassesId(classesBean);
    }

    public StudentBean(String name, LocalDate birthday, String tel, int classId, int schoolId) {
        this.stuName = name;
        this.birthday = birthday;
        this.tel = tel;
        this.classesBean = new ClassesBean();
        this.classesBean.setClassesId(classId);
        SchoolBean schoolBean = new SchoolBean();
        schoolBean.setSchoolId(schoolId);
        this.classesBean.setSchoolBean(schoolBean);
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public ClassesBean getClassesBean() {
        return classesBean;
    }

    public void setClassesBean(ClassesBean classesBean) {
        this.classesBean = classesBean;
    }


    @Override
    public String toString() {
        return "StudentBean{" +
                "studentId=" + studentId +
                ", stuName='" + stuName + '\'' +
                ", birthday=" + birthday +
                ", tel='" + tel + '\'' +
                ", schoolName='" + schoolName + '\'' +
                ", classesBean=" + classesBean +
                '}' + "\n";
    }
}
